package com.cangxuan.backend.dao;


import com.cangxuan.backend.entity.UserAmountRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.management.monitor.StringMonitor;
import java.util.List;

/**
 * user_amount_record表操作接口
 */
@Mapper
public interface IBillDao{
    List<UserAmountRecord> selectWhole(@Param("userId") int userId, @Param("year")String year,@Param("month")String month);
    List<UserAmountRecord> selectIncome(@Param("userId") int userId,@Param("year")String year,@Param("month")String month,@Param("direction")Integer direction);

    int insertRecord(UserAmountRecord bill);

    Float selectTotal(@Param("userId") int id,@Param("year") String year,@Param("month") String month,@Param("direction")byte direction);
}
